package com.ruibang.glass.produce.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.ruibang.glass.produce.domain.resp.OperateQualityDefectInfo;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-04-08  15:19
 * @Description: TODO：生产经营 质量数据信息
 * @Version: 1.0
 */
@Data
@TableName(value = "g_produce_operate_quality", autoResultMap = true)
public class OperateQuality extends BaseEntity implements Serializable {
    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;


    @ApiModelProperty("实际横切数(热端)")
    private int hqNum;
    @ApiModelProperty("半成品收包数(热端)")
    private int bcpSbNum;
    @ApiModelProperty("半成品直投数(热端)")
    private int bcpZtNum;


    @ApiModelProperty("直投数")
    private int ztNum;
    @ApiModelProperty("A型架投入数")
    private int axjTrNum;
    @ApiModelProperty("再清洗投入数")
    private int zqxTrNum;
    @ApiModelProperty("成品返投")
    @TableField(value = "cpft_num")
    private int cpftNum;
    @ApiModelProperty("外购投入")
    private int wgNum;


    @ApiModelProperty("良品数")
    private int lpNum;
    @ApiModelProperty("综合良率")
    private double compRate;
    @ApiModelProperty("当月收包良品数")
    private int monthSbLpNum;


    @ApiModelProperty("直投良品数")
    private int ztLpNum;
    @ApiModelProperty("直投良品率")
    private double ztLpRate;
    @ApiModelProperty("再清洗收包数")
    private int zqxSbNum;
    @ApiModelProperty("再清洗收包率")
    private double zqxSbRate;
    @ApiModelProperty("直投缺陷")
    @TableField(value = "zt_defect", typeHandler = JacksonTypeHandler.class)
    private List<OperateQualityDefectInfo> ztDefect;


    @ApiModelProperty("收包投数")
    private int sbtNum;
    @ApiModelProperty("收包投良品数")
    private int sbtLpNum;
    @ApiModelProperty("收包投良品率")
    private double sbtLpRate;
    @ApiModelProperty("收包投缺陷")
    @TableField(value = "sbt_defect", typeHandler = JacksonTypeHandler.class)
    private List<OperateQualityDefectInfo> sbtDefect;


    @ApiModelProperty("再清洗数")
    private int zqxNum;
    @ApiModelProperty("再清洗良品数")
    private int zqxLpNum;
    @ApiModelProperty("再清洗良品率")
    private double zqxLpRate;
    @ApiModelProperty("再清洗缺陷")
    @TableField(value = "zqx_defect", typeHandler = JacksonTypeHandler.class)
    private List<OperateQualityDefectInfo> zqxDefect;


    @ApiModelProperty("成品返头良品数")
    @TableField(value = "cpft_lp_num")
    private int cpftLpNum;
    @ApiModelProperty("成品返头率")
    @TableField(value = "cpft_lp_rate")
    private double cpftLpRate;
    @ApiModelProperty("成品返头缺陷")
    @TableField(value = "cpft_defect", typeHandler = JacksonTypeHandler.class)
    private List<OperateQualityDefectInfo> cpftDefect;

    @ApiModelProperty("总缺陷数据")
    @TableField(value = "total_defect", typeHandler = JacksonTypeHandler.class)
    private List<OperateQualityDefectInfo> totalDefect;

    @ApiModelProperty("热端丢版数")
    private int hotDiscardBoardNum;
    @ApiModelProperty("热端丢版占比")
    private double hotDiscardBoardRate;

    @ApiModelProperty("直投再清洗")
    private int ztZqxNum;
    @ApiModelProperty("收包投再清洗")
    private int sbtZqxNum;
}
